package com.gmail.avereshchaga.db.service;

import com.gmail.avereshchaga.db.entity.IInvoice;
import java.util.Date;
import java.util.List;

/**
 *
 * @author <a href="mailto:avereshchaga@gmail.com">Vereshchaga Alexey</a>
 */
public interface IInvoiceService {

    public IInvoice createInvoice(IInvoice invoice);

    public void updateInvoice(IInvoice invoice);

    public IInvoice deleteInvoice(IInvoice invoice);

    public List<IInvoice> findAll(Integer page);

    public IInvoice findById(Long id);

    public List<IInvoice> findByFilter(Date date, String name, Integer page);

    public List findByName(String createdBy, Integer page);
}
